package com.woniu.core.exception.account;

public enum AccountExceptionCode {

    THIS_ACCOUNT_HAS_BEEN_REGISTERED(40001,"该账号名或手机号已被注册"),
    ACCOUNTNAME_ACCOUNTPASS_ERROR(40002,"密码错误"),
    USER_NOT_LOGIN(40003,"未登录"),
    TOKEN_FORMAT_ERROR(40004,"token格式错误"),
    TOKEN_STALE_DATED(40005,"token已经过期,请重新登录"),
    TOKEN_VISA_ERROR(40006,"token签证错误"),
    LOGIN_ERROR(40007,"登录错误，请稍后再试"),
    ANONYMOUS_ERROR(50001,"未知错误"),
    NOT_FIND_THIS_USER(40008,"没找到该用户"),
    NOT_FIND_THIS_COACH(40008,"没找到该教练"),
    NOT_FIND_THIS_ADMIN(40008,"没找到该管理员"),
    NOT_FIND_THIS_GYM(40009,"没找到该场馆"),
    OLD_NEW_PASS_CANT_SAME(400010,"新旧密码不能相同"),
    EMAIL_CODE_ERROR(40011,"验证码错误"),
    NEW_FIRST_SECOND_NOT_SAME(40012,"两次密码输入不同，请重新输入"),
    THIS_GYM_NOT_FIND(40013,"没找到该场馆"),
    YOUR_ACCOUNT_NOT_HAVE_PERMISSIONS(40015,"你的账号没有权限"),
    NOT_FIND_THIS_ADDRESS(40016,"没找到该收货地址"),
    THIS_COACH_CANT_RESIGN_UNTIL_THE_COURSE_IS_OVER(40017,"该教练还有课程未完成，不能办理离职"),
    THERE_IS_NO_RESERVATiON_FOR_THIS_COACH_AT_THE_VENUE(40018,"场馆没有该签约教练"),
    MODIFICATION_FAILED(40019,"修改失败，请重试"),
    FAILED_TO_PUBLISH_RECRUITMENT_INFORMATION(40020,"发布招聘信息失败，请重试"),
    CANT_FIND_THIS_REVRUITMENT_INFORMATION(40021,"找不到这个招聘信息"),
    YOU_DONT_HAVE_PERMISSION_TO_OPERATE(40022,"你没有权限操作"),
    DELETE_FAILED(40023,"删除失败"),
    FAILED_TO_ADD_DELIVERY_ADDRESS(40024,"新增收货地址失败"),
    APPLICATION_FAILED_PLEASE_TRY_AGAIN(40025,"申请失败，请重试"),
    THE_JOB_APPLICATION_WAS_NOT_FOUNT(40026,"该申请已被处理"),
    HAVE_NOT_RESIGNED_AND_CANT_SIGN_A_CONTRACT(40027,"没有离职，不能签约"),
    ADD_FAILED(40028,"新增失败"),
    THE_VENUE_ACCOUNT_IS_FORZEN_AND_CANT_BE_MODIFIED(40029,"该场馆所属账号已被冻结，场馆状态不可修改"),
    COACH_ACCOUNT_IS_FORZEN_AND_CANT_BE_VIEWED(40030,"该教练账号已被冻结，不可查看其个人信息"),
    NO_QUALIFICATION_APPLICATION_INITIATED(40031,"还未发起资质申请"),
    THIS_IS_NOT_YOUR_BINDING_EMAIL(40032,"这不是你的绑定邮箱"),
    VERIFICATION_CODE_SENT(40033,"验证码已发送！"),
    STORE_IS_FREEZE(40034,"场馆已经冻结"),
    OUTLOGIN_ERROR(40007,"退出登录失败"),;

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
    AccountExceptionCode(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
